import hashlib
import uuid


def encry(password):
    md = hashlib.md5(password.encode())
    return md.hexdigest()


if __name__ == '__main__':
    while True:
        uid = int(input('输入设备码：'))
        key = uid * 38 + 85 - 28
        result = encry(str(key))
        print(f'{result}')
